import React from "react";
import { AtModal } from "taro-ui";
import "./index.scss";
import "taro-ui/dist/style/components/modal.scss";
/**
 * Dialog
 */
var Dialog = function (_a) {
    var _b = _a.isOpened, isOpened = _b === void 0 ? false : _b, title = _a.title, content = _a.content, _c = _a.cancelText, cancelText = _c === void 0 ? "取消" : _c, _d = _a.confirmText, confirmText = _d === void 0 ? "确定" : _d, onClose = _a.onClose, onConfirm = _a.onConfirm;
    return (React.createElement(AtModal, { isOpened: isOpened, title: title, content: content, cancelText: cancelText, confirmText: confirmText, onClose: onClose, onCancel: onClose, onConfirm: onConfirm }));
};
export default Dialog;
